package be.artesis.titamo.importer;

import java.util.Vector;

public class ProgressObservable {
	
	private Vector<ProgressObserver> observers;
	
	public ProgressObservable()
	{
		observers = new Vector<ProgressObserver>();
	}
	
	public void registerObserver(ProgressObserver o)
	{
		observers.add(o);
	}
	
	public void notifyObservers(int percentage)
	{
		for (ProgressObserver o : observers)
			o.update(percentage);
		
	}
}
